package com.mars.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.common.request.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 患者挂号预约请求对象 sys_reservation
 *
 * @author mars
 * @date 2024-04-12
 */
@Data
@ApiModel(value = "患者挂号预约对象")
@EqualsAndHashCode(callSuper = true)
public class SysReservationRequest extends PageRequest{



    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 医生
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "医生")
    private Long doctor;

    /**
     * 预约时间
     */
    @ApiModelProperty(value = "预约时间")
    private LocalDate time;

    /**
     * 患者
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "患者")
    private Long userId;

    /**
     * 状态
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "状态")
    private Long status;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    @ApiModelProperty(value = "患者姓名")
    private String userName;
}
